ActionController::Routing::Routes.draw do |map|

  map.resources :empleados

  map.resources :socios

  map.resources :paquetes

  map.resources :rutas

  map.resources :ordens

  map.resources :pagos

  map.resources :direccions

  map.resources :etapas

  map.resources :clientes

  map.menu '/menu', :controller => 'ordens', :action => 'menu'

  map.login '/login', :controller => 'clientes', :action => 'login'

  map.fin_sesion '/fin_sesion', :controller => 'clientes', :action => 'fin_sesion'

  map.sesion '/sesion_clientes', :controller => 'clientes', :action => 'sesion_clientes'

  map.empleado_google '/empleado_google', :controller => 'empleados', :action => 'empleado_google'

  map.empleado_sesion '/empleado_sesion', :controller => 'empleados', :action => 'empleado_sesion'

  map.empleado_logout '/empleado_logout', :controller => 'empleados', :action => 'empleado_logout'

  map.recoleccion '/recoleccion', :controller => 'rutas', :action => 'recoleccion'

  map.xml '/recepcion_apoyo' , :controller => 'rest_liq', :action => 'recepcion_apoyo', :via => 'post'

  map.servicio_etapa 'servicio_etapa' , :controller => 'rest_liq', :action => 'servicio_etapa'

  map.recolectado 'recolectado' , :controller => 'ordens', :action => 'recolectado'

  map.orden_entregar 'orden_entregar' , :controller => 'ordens', :action => 'orden_entregar'

  map.orden_despachar 'orden_despachar' , :controller => 'ordens', :action => 'orden_despachar'

  map.track '/track', :controller => 'ordens', :action => 'track'
  # The priority is based upon order of creation: first created -> highest priority.

  # Sample of regular route:
  #   map.connect 'products/:id', :controller => 'catalog', :action => 'view'
  # Keep in mind you can assign values other than :controller and :action

  # Sample of named route:
  #   map.purchase 'products/:id/purchase', :controller => 'catalog', :action => 'purchase'
  # This route can be invoked with purchase_url(:id => product.id)

  # Sample resource route (maps HTTP verbs to controller actions automatically):
  #   map.resources :products

  # Sample resource route with options:
  #   map.resources :products, :member => { :short => :get, :toggle => :post }, :collection => { :sold => :get }

  # Sample resource route with sub-resources:
  #   map.resources :products, :has_many => [ :comments, :sales ], :has_one => :seller
  
  # Sample resource route with more complex sub-resources
  #   map.resources :products do |products|
  #     products.resources :comments
  #     products.resources :sales, :collection => { :recent => :get }
  #   end

  # Sample resource route within a namespace:
  #   map.namespace :admin do |admin|
  #     # Directs /admin/products/* to Admin::ProductsController (app/controllers/admin/products_controller.rb)
  #     admin.resources :products
  #   end

  # You can have the root of your site routed with map.root -- just remember to delete public/index.html.
   map.root :controller => 'application', :action=> 'home'

  # See how all your routes lay out with "rake routes"

  # Install the default routes as the lowest priority.
  # Note: These default routes make all actions in every controller accessible via GET requests. You should
  # consider removing or commenting them out if you're using named routes and resources.

  
  map.connect 'clientes/sesion_cliente/', :controller => 'clientes',:action => 'sesion_cliente', :conditions => { :method => :get }
  map.connect ':controller/:action/:id'
  map.connect ':controller/:action/:id.:format'
  
  
end
